package com.xunua.NaoZiKongBai.Base;


/**
 * @user XUNUA
 * @email  xunua@outlook.com
 * @creat time 2020/5/13 12:36
 */
public abstract class BasePresenter<M extends BaseModel,V extends BaseView,CONTRACT>extends SuperBase<CONTRACT> {
    public M mModel;
    public V mView;

    public BasePresenter() {
        this.mModel= getModelInstance();
    }

    public void bindView(V mView){
        this.mView=mView;
    }
    public void unbindView(V mView){
        this.mView=null;
    }
    public abstract M getModelInstance();
}
